package com.ccb.sc.groupon.vo;

import com.ccb.sc.common.modules.groupon.enums.GrouponStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 列表视图实体
 * </p>
 *
 * @author ken
 * @date 2020-08-24
 */
@Data
@ApiModel
@Accessors(chain = true)
public class GrouponLogListVo {

    @ApiModelProperty(value = "用户id")
    private Long memberId;

    @ApiModelProperty(value = "团购id")
    private Long grouponId;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "成团人数")
    private Integer groupTotalSize;

    @ApiModelProperty(value = "当前团购人数")
    private Integer groupCurrentSize;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "团购价格")
    private BigDecimal grouponPrice;

    @ApiModelProperty(value = "销售价格")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "团购状态")
    private GrouponStatus status;

    @ApiModelProperty(value = "团购结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "佣金")
    private BigDecimal commission = BigDecimal.ZERO;
}